-
Notifications
You must be signed in to change notification settings - Fork 513
system/network: Fix interfaces filtering #15883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes network data stream interface filtering by populating both the legacy top-level interfaces field and the nested network.interfaces field to maintain backward compatibility with existing Beats behavior.
- Version bumped to 2.7.1
- Added dual population of
interfacesandnetwork.interfacesfields in the stream template - Improved documentation clarity for the network interfaces configuration
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/system/manifest.yml | Bumped version to 2.7.1 for the bugfix release |
| packages/system/data_stream/network/manifest.yml | Improved description clarity for interface monitoring behavior |
| packages/system/data_stream/network/agent/stream/stream.yml.hbs | Added legacy interfaces field alongside network.interfaces to fix filtering |
| packages/system/changelog.yml | Documented the bugfix with link to PR |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/system/data_stream/network/agent/stream/stream.yml.hbs
Outdated
Show resolved
Hide resolved
🚀 Benchmarks reportPackage
|
| Data stream | Previous EPS | New EPS | Diff (%) | Result |
|---|---|---|---|---|
syslog |
500000 | 250000 | -250000 (-50%) | 💔 |
To see the full report comment with /test benchmark fullreport
Co-authored-by: Copilot <[email protected]>
💚 Build Succeeded
History
cc @shmsr |
|
Package system - 2.7.1 containing this change is available at https://epr.elastic.co/package/system/2.7.1/ |
Proposed commit message
So far interfaces added by the user were populating
network.interfacesbut that does not populate the list internally as the config is at module level and not at metricset level; so instead of configuringnetwork.interfaces, one must configureinterfacesand it will populate the list of interfaces and it will work as expected.Checklist
changelog.ymlfile.How to test this PR locally
When configured, in debug mode, the code should trigger:
^ Implementation in beats
So, with this fix, I am able to get the right interfaces configured.